package com.tcm.order.dao.mapper;


import com.tcm.order.entity.Invoice;
import org.apache.ibatis.annotations.Param;

public interface InvoiceMapper {
    int deleteByKey(Long id);

    int deleteLogicByKey(Long id);

    int deleteByUserOrder(@Param("userId") Long userId, @Param("orderId") Long orderId);

    int deleteLogicByUserOrder(@Param("userId") Long userId, @Param("orderId") Long orderId);

    int insert(Invoice record);

    Invoice findByUserOrder(@Param("userId") Long userId, @Param("orderId") Long orderId);

    int updateByKey(Invoice record);

}